import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import IndexList from '@/components/IndexList'
import System from '@/components/System'
import WindowAlert from '@/components/Alert'
import Login from '@/components/Login'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/index',
      name: 'IndexList',
      component: IndexList
    },
    {
      path: '/system',
      name: 'System',
      component: System
    },
    {
      path: '/alert',
      name: 'WindowAlert',
      component: WindowAlert
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    }

  ]
})
